﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="../components/lib/bootstrap.min.css" />
<link rel="stylesheet" href="../components/lib/fontawesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="../components/lib/toastr.min.css" />
<link rel="stylesheet" href="../components/lib/style.css" />

<link rel="stylesheet" type="text/css" href="styles/style.css">
</head>
<body>

    <div id="loading"><img src="img/loading.gif"></div>

    <div id="main" style="display:none">
    <script class="controller" type="text/html">
        <div class="header">
            <a href="javascript:;" onclick="service.redirectToIndex();return false;" class="fa fa-angle-left"></a>
            <p><%=collectInfo.title%></p>
        </div>
        <div class="banner">
            <img src="<%=collectInfo.contentImageUrl%>">
        </div>
        <div class="main">
            <div class="tp_box">
                <ul class="clearfix">
                    <%
                    for(i = 0; i < itemList.length; i ++) {
                      var item = itemList[i];
                    %>
                      <li>
                        <div class="fl img">
                            <a href="javascript:;" onclick="service.redirectToItem(<%=item.id%>);return false;"><img src="<%=item.smallUrl%>"></a>
                        </div>
                        <div class="text_box fl">
                            <p><%=item.title%></p>
                            <p>当前排名：<%=getRank(item.id)%></p>
                            <p>当前票数：<%=item.voteNum%></p>
                        </div>
                        <div class="fr btn_box">
                            <a href="javascript:;" onclick="controller.submitVote(<%=item.id%>);return false;" class="btn1">投TA一票</a>
                            <a href="javascript:;" onclick="service.redirectToItem(<%=item.id%>);return false;" class="btn2">为TA拉票</a>
                        </div>
                    </li>
                    <%}%>
                </ul>
            </div>
        </div>

        <%if (!isPoweredBy){%>
          <div class="footer">
            <p>技术支持：阁下 <a href="http://www.gexia.com" target="_blank">GEXIA.COM</a></p>
          </div>
        <%}else if(poweredBy){%>
          <div class="footer">
            <p><%==poweredBy%></p>
          </div>
        <%}%>

    </script>
    </div>
</body>
</html>

<script src="../components/lib/jquery-1.11.0.min.js"></script>
<script src="../components/lib/bootstrap.min.js"></script>
<script src="../components/lib/json2.js"></script>
<script src="../components/lib/template.js"></script>
<script src="../components/lib/toastr.min.js"></script>
<script src="../components/lib/notifyService.js"></script>
<script src="../components/lib/utilService.js"></script>

<script src="scripts/service.js"></script>
<script src="scripts/controller.js"></script>